package com.ibeeking.gmc.global.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName ScriptPublishDO
 * @Description 脚本发布
 * @Author ibeeking
 * @Date 2021-05-02 16:03
 **/
@Data
@TableName("gmc_tenant_script_relation")
public class TenantScriptRelationDO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 执行脚本id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Integer tenantId;

    /**
     * 执行次数
     */
    @TableField(value = "times")
    private Integer times;

    /**
     * 发布状态，0-未执行，1-执行中，2-执行成功，3-执行失败,4-终止
     */
    @TableField(value = "publish_status")
    private Integer publishStatus;

    @TableField("modify_time")
    private LocalDateTime modifyTime;
}
